/*
 * c28.h: c28 specific defines
 *
 * Copyright (C) 2002 Intel Corporation (yu.tang@intel.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef BLOB_ARCH_C28_H
#define BLOB_ARCH_C28_H

/* Use FFUART */
#define USE_SERIAL3 1
#define TERMINAL_SPEED  baud_115200

#define BLOB_ABS_BASE_ADDR  (0x5c040000)

/* where do various parts live in RAM */
#define BLOB_RAM_BASE       (0x80200000)
#define KERNEL_RAM_BASE     (0x80008000)
//#define KERNEL_RAM_BASE       (0xa1000000)
#define PARAM_RAM_BASE      (0x80210000)
#define RAMDISK_RAM_BASE    (0x80600000)


/* and where do they live in flash */
#define BLOB_FLASH_BASE     (0x10000000)
#define BLOB_FLASH_LEN      (256 * 1024)
#define PARAM_FLASH_BASE    (BLOB_FLASH_BASE + BLOB_FLASH_LEN)
#define PARAM_FLASH_LEN     (0) /* no parameters */
#define KERNEL_FLASH_BASE   (PARAM_FLASH_BASE + PARAM_FLASH_LEN)
#define KERNEL_FLASH_LEN    (2 * 1024 * 1024)
#define LOAD_RAMDISK        0 /* load ramdisk into ram */
#define RAMDISK_FLASH_BASE  (KERNEL_FLASH_BASE + KERNEL_FLASH_LEN)
#define RAMDISK_FLASH_LEN   (4 * 1024 * 1024)


/* the position of the kernel boot parameters */
#define BOOT_PARAMS     (0x80000100)

/* the size (in kbytes) to which the compressed ramdisk expands */
#define RAMDISK_SIZE        (8 * 1024)

/* TFTP download RAM base */
#define TFTP_RAM_START      (0x80008000)

/* SMC91c111 */
#define SMC_BASE        (0x14000300)
#define GPIO_BASE   (0x40E00000)
#define MFP_BASE    (0x40E10000)
#define OST_BASE    (0x40A00000)
#define CLK_BASE    (0x41340000)
#define KPC_BASE    (0x41500000)
#define RTC_BASE        (0x40900000)
#define LCDC_BASE   (0x44000000)
#define MLCD_BASE   (0x46000000)
#define TSIC_BASE   (0x41c00000)
#define UDC_BASE    (0x40600000)
#define USBH_BASE   (0x4C000000)
#define DMAC_BASE   (0x40000000)
#define QCI_BASE        (0x50000000)
#define I2C_BASE        (0x40301680)
#define MMC1_BASE   (0x41100000)
#define MMC2_BASE   (0x42000000)
#define SPMU_BASE       (0x40F50000)
#define BPMU_BASE       (0x40F40000)
#define MEMC_BASE       (0x48100000)
#define PML_BASE        (0x4600ff00)
#define INTC_BASE       (0x4A000000)

#define SDRAM_START 0xa0000000
#define SDRAM_END   0xa4000000
#define SDRAM_SIZE 0x0400000

#endif
